<?php $this->renderPartial('_tabs'); ?>
<div class="grid_16">
	<div class="main-title">
		<h1>CPD Target Setting</h1>
	</div>

	<div class="form">

		<?php
		$form = $this->beginWidget('CActiveForm', array(
			'id' => 'cpd-target-arragement-form',
			'enableAjaxValidation' => false,
		));
		?>
		<table class="form-table">
			<?php foreach ($cpdClassifications as $cpdClassifcation): ?>
				<tr>
					<td><?php echo $cpdClassifcation->code . ':' . $cpdClassifcation->name; ?></td>
					<td><?php echo $form->textField($model[$cpdClassifcation->id], '[' . $cpdClassifcation->id . ']credit_hour', array('size' => 3, 'maxlength' => 3)); ?></td>
				</tr>
			<?php endforeach; ?>
		</table>
		<div class="row buttons">
			<a id="back" class="link-button with-icon" href="<?php echo $this->createUrl('/cpd/cpdTargetArragement/admin'); ?>">
				Back
			</a>
			<?php echo CHtml::submitButton('Save'); ?>
		</div>
		<?php $this->endWidget(); ?>

	</div><!-- form -->
</div>